Federico Mena Quintero [Fri, 23 Jan 2009 00:53:23 +0000 (00:53 +0000)]
Return an error code when refreshing the entry from the user's input
2009-01-22 Federico Mena Quintero <federico@novell.com>
Return an error code when refreshing the entry from the user's
input. We use this in the completion code to know when completion
can't happen due to (for example) having a non-local URI in a file
chooser that is local_only=TRUE.
Also, we start maintaining an invariant that
chooser_entry->current_folder_file != NULL implies that:
* what the user entered is valid
* we are loading that folder (chooser_entry->load_folder_cancellable != NULL)
* or we are done loading that folder, or we have a handle
to it at least (chooser_entry->current_folder != NULL)
The invariant also says that all of the above are NULL (and
chooser_entry->current_folder_file == NULL) implies that the user
typed something invalid. This makes
_gtk_file_chooser_entry_get_current_folder() not able to return
an invalid folder.
* gtk/gtkfilechooserentry.c (RefreshStatus): New enum.
(refresh_current_folder_and_file_part): Return a RefreshStatus.
We filter out incomplete hostnames here (typing
"sftp://incompl[tab]" will error out), as well as completely
unparsable input.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22177
Gil Forcada Codinachs [Thu, 22 Jan 2009 22:51:51 +0000 (22:51 +0000)]
Updated Catalan translation by David Planella
svn path=/trunk/; revision=22176
Matthew Barnes [Thu, 22 Jan 2009 18:00:48 +0000 (18:00 +0000)]
Bug 568334 – Constructor properties for GtkAction
2009-01-22 Matthew Barnes <mbarnes@redhat.com>
Bug 568334 – Constructor properties for GtkAction
* gtk/gtkaction.c (gtk_action_class_init): Make all properties
G_PARAM_CONSTRUCT except "action-group".
svn path=/trunk/; revision=22175
Michael Natterer [Thu, 22 Jan 2009 15:15:40 +0000 (15:15 +0000)]
g_return_if_fail() on icon_name != NULL so we get a warning instead of a
2009-01-22 Michael Natterer <mitch@imendio.com>
* gtk/gtkicontheme.c (gtk_icon_theme_has_icon): g_return_if_fail()
on icon_name != NULL so we get a warning instead of a crash here.
svn path=/trunk/; revision=22174
Åsmund Skjæveland [Thu, 22 Jan 2009 10:03:39 +0000 (10:03 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-22 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22173
Tor Lillqvist [Thu, 22 Jan 2009 09:45:58 +0000 (09:45 +0000)]
Bug 568305 - gdk-pixbuf mishandles BI_BITFIELDS bmps
2009-01-19 Tor Lillqvist <tml@iki.fi>
Bug 568305 - gdk-pixbuf mishandles BI_BITFIELDS bmps
* io-bmp.c (OneLine32): Use unsigned variables so that we can
right-shift them without risk of sign extension. Don't "reverse"
the alpha value, actually storing 0xFF-alpha, but use it as such.
svn path=/trunk/; revision=22172
Matthias Clasen [Thu, 22 Jan 2009 00:35:16 +0000 (00:35 +0000)]
Updates
svn path=/trunk/; revision=22170
Matthias Clasen [Thu, 22 Jan 2009 00:34:30 +0000 (00:34 +0000)]
Don't show nonexisting windows
svn path=/trunk/; revision=22169
Matthias Clasen [Thu, 22 Jan 2009 00:33:54 +0000 (00:33 +0000)]
Implement select-by-words for selectable labels
svn path=/trunk/; revision=22168
Matthias Clasen [Wed, 21 Jan 2009 21:15:19 +0000 (21:15 +0000)]
Change the Caps Lock warning to the more neutral "Caps Lock is on".
009-01-21 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c: Change the Caps Lock warning to the more
neutral "Caps Lock is on". Requested by Wouter Bolsterlee
svn path=/trunk/; revision=22166
Tor Lillqvist [Wed, 21 Jan 2009 20:51:22 +0000 (20:51 +0000)]
Rename static local functions and variables to not have any unnecessary _
2009-01-21 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkcursor-win32.c: Rename static local functions and
variables to not have any unnecessary _ or _gdk_win32 prefix.
* gdk/win32/gdkcursor-win32.c (hcursor_from_type): Implement
creating a GDK_BLANK_CURSOR.
svn path=/trunk/; revision=22165
Matthias Clasen [Wed, 21 Jan 2009 20:09:49 +0000 (20:09 +0000)]
Bug 568552 – gtk_combo + gtk entry in invisible mode takes 100% cpu
* gtk/gtkentry.c: Fix an expose loop caused by raising windows out
of an expose handler. Also, don't show the 'Caps Lock' warning for
activated input methods, since that makes it permanently shown
for some locales. It should not be that necessary, now that we
do show preedit text even in password entries. Pointed out by
Frederic Crozat.
svn path=/trunk/; revision=22164
Federico Mena Quintero [Wed, 21 Jan 2009 19:12:58 +0000 (19:12 +0000)]
GtkFileChooser: only set local_only on the location entry if it exists
2009-01-21 Federico Mena Quintero <federico@novell.com>
* gtk/gtkfilechooserdefault.c (save_widgets_create): Set
local_only on the location entry when we create it...
(set_local_only): ... and set it here only if the location entry
exists.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22163
Yair Hershkovitz [Wed, 21 Jan 2009 18:36:14 +0000 (18:36 +0000)]
updated hebrew translation
svn path=/trunk/; revision=22162
Yair Hershkovitz [Wed, 21 Jan 2009 18:35:17 +0000 (18:35 +0000)]
updated hebrew translation
svn path=/trunk/; revision=22161
Changwoo Ryu [Wed, 21 Jan 2009 17:10:39 +0000 (17:10 +0000)]
Updated Korean translation
svn path=/trunk/; revision=22160
Changwoo Ryu [Wed, 21 Jan 2009 17:10:20 +0000 (17:10 +0000)]
Updated Korean translation
svn path=/trunk/; revision=22159
Marek Kasik [Wed, 21 Jan 2009 15:03:14 +0000 (15:03 +0000)]
Bug 561801 - "scheduled printing" doesn't function as expected
2009-01-21 Marek Kasik <mkasik@redhat.com>
Bug 561801 - "scheduled printing" doesn't function as expected
* gtk/gtkprintunixdialog: Add tooltip.
* modules/printbackends/cups/gtkprintbackendcups.c: Add conversion
from local time to utc time for scheduled printing.
svn path=/trunk/; revision=22158
Federico Mena Quintero [Wed, 21 Jan 2009 03:17:01 +0000 (03:17 +0000)]
Don't do completion in the middle of an incomplete hostname
Fix completion so it doesn't pop up for every character in a URI
hostname:
* gtk/gtkfilechooser.h (GtkFileChooserError): Add a
GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME.
* gtk/gtkfilesystem.c (_gtk_file_system_parse): Return an
"incomplete hostname" error if the user has not typed a full
hostname yet in an URI.
* gtk/gtkfilechooserentry.c (append_common_prefix): If we get an
incomplete hostname, just don't pop up an error, since that is a
transient state and the user doesn't need to be notified about it.
(refresh_current_folder_and_file_part): Don't revert to showing
the base folder if we have an incomplete hostname.
(reload_current_folder): Handle the passed folder being NULL, even
if we must force a reload. Also, reload the folder if we didn't
have a cancellable for it (i.e. we hadn't started to load it
before).
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22157
Federico Mena Quintero [Wed, 21 Jan 2009 03:16:46 +0000 (03:16 +0000)]
Add a local_only property to GtkFileChooserEntry
Patch by Carlos Garnacho <carlos@imendio.com> - add a local_only
property to GtkFileChooserEntry:
* gtk/gtkfilechooserentry.c (struct _GtkFileChooserEntry): Add a
local_only field.
(_gtk_file_chooser_entry_init): Default to local_only being true.
(start_explicit_completion): Don't allow completion of non-native
files if local_only is turned on.
(start_loading_current_folder): Don't start loading non-native
folders if local_only is turned on.
(_gtk_file_chooser_entry_set_local_only): New function.
(_gtk_file_chooser_entry_get_local_only): New function.
* gtk/gtkfilechooserentry.h (_gtk_file_chooser_entry_set_local_only,
_gtk_file_chooser_entry_get_local_only): New prototypes.
* gtk/gtkfilechooserdefault.c (set_local_only): Set the local_only
property on the entry.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22156
Federico Mena Quintero [Wed, 21 Jan 2009 03:16:28 +0000 (03:16 +0000)]
Factor out code to discard the current_folder
Patch by Carlos Garnacho <carlos@imendio.com>:
* gtk/gtkfilechooserentry.c (discard_current_folder): New
function, factored out for when we need to get rid of the
current_folder.
(gtk_file_chooser_entry_dispose): Use discard_current_folder().
(finished_loading_cb): Fix prototype.
(load_directory_get_folder_callback): Discard the completion
store, as well as clearing the completion feedback, if we find an
error while loading the folder. Also, use
discard_current_folder().
(reload_current_folder): Use discard_current_folder().
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22155
Federico Mena Quintero [Wed, 21 Jan 2009 03:16:13 +0000 (03:16 +0000)]
bgo545980 - parse URIs in GtkFileChooserEntry
2009-01-15 Federico Mena Quintero <federico@novell.com>
http://bugzilla.gnome.org/show_bug.cgi?id=545980 -
GtkFileChooserEntry should handle URIs
* gtk/gtkfilesystem.c (_gtk_file_system_parse): Detect URI schemes
and parse the full URI.
(has_uri_scheme): New function, stolen from the old
gtkfilesystemgnomevfs.c.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22154
Matthias Clasen [Wed, 21 Jan 2009 02:53:45 +0000 (02:53 +0000)]
Add setters and getters for GtkAction properties, in preparation for bug
* gtk/gtk.symbols:
* gtk/gtkaction.[hc]: Add setters and getters for GtkAction
properties, in preparation for bug 560228.
svn path=/trunk/; revision=22153
Christian Dywan [Wed, 21 Jan 2009 00:03:00 +0000 (00:03 +0000)]
Bug 567413 – GtkComboBoxEntry doesn't emit "changed" signal on entry
2009-01-21 Christian Dywan <christian@twotoasts.de>
Bug 567413 – GtkComboBoxEntry doesn't emit "changed" signal
on entry editing
* gtk/gtkcombobox.c (gtk_combo_box_set_active): Return only if index
is set. Patch by Carl-Anton Ingmarsson.
svn path=/trunk/; revision=22152
Torsten Schönfeld [Tue, 20 Jan 2009 19:09:53 +0000 (19:09 +0000)]
Add a "Since: 2.16" tag to gtk_style_get.
svn path=/trunk/; revision=22151
Jorge Gonzalez Gonzalez [Tue, 20 Jan 2009 18:05:20 +0000 (18:05 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22150
Matthias Clasen [Tue, 20 Jan 2009 05:10:27 +0000 (05:10 +0000)]
Bug 565656 – Add marks to scales
Bug 565656 – Add marks to scales
* gtk/gtkrange.[hc]: Add internal api to define 'stop values'
that have a little resistance when dragging the slider over it.
* gtk/gtk.symbols:
* gtk/gtkscale.[hc] (gtk_scale_add_mark): New function to add
a 'mark' to a scale, which will draws a tick, plus optionally
some text, and makes the value a stop value.
(gtk_scale_clear_values): Removes all marks.
* tests/testscale.c: Test for marks on scales
* tests/Makefile.am: Integrate it
svn path=/trunk/; revision=22149
Matthias Clasen [Tue, 20 Jan 2009 02:45:19 +0000 (02:45 +0000)]
Replace several implementation of blank cursor setting by
* gtk/gtkentry.c:
* gtk/gtkfilechooserentry.c:
* gtk/gtktextview.c: Replace several implementation of
blank cursor setting by GDK_BLANK_CURSOR.
svn path=/trunk/; revision=22148
Matthias Clasen [Tue, 20 Jan 2009 02:27:57 +0000 (02:27 +0000)]
Update docs on blank cursors
svn path=/trunk/; revision=22147
Matthias Clasen [Tue, 20 Jan 2009 02:18:33 +0000 (02:18 +0000)]
Document GDK_BLANK_CURSOR
svn path=/trunk/; revision=22146
Matthias Clasen [Tue, 20 Jan 2009 02:15:59 +0000 (02:15 +0000)]
Cache cursors to avoid libXcursor theme lookup overhead.
Patch by David Alan Gilbert.
* gdk/gdkcursor.h: Add a GDK_BLANK_CURSOR cursor type.
* gdk/x11/gdkcursor-x11.c: Cache font cursors and named cursors.
* gdk/x11/gdkprivate-x11.h:
* gdk/x11/gdkcdisplay-x11.c: Remove cached cursors when a
display if finalized.
svn path=/trunk/; revision=22145
Jorge Gonzalez Gonzalez [Mon, 19 Jan 2009 18:13:19 +0000 (18:13 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22144
Åsmund Skjæveland [Mon, 19 Jan 2009 13:37:07 +0000 (13:37 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-19 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22143
Gabor Kelemen [Mon, 19 Jan 2009 10:43:19 +0000 (10:43 +0000)]
Translation updated.
2009-01-19 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
svn path=/trunk/; revision=22142
Matthias Clasen [Mon, 19 Jan 2009 05:15:57 +0000 (05:15 +0000)]
Accept a type of TARGETS instead of ATOM, too. Based on a patch by Peng
* gtk/gtkselection.c (gtk_selection_data_get_targets): Accept
a type of TARGETS instead of ATOM, too. Based on a patch by
Peng Wu.
svn path=/trunk/; revision=22141
Matthias Clasen [Mon, 19 Jan 2009 05:01:35 +0000 (05:01 +0000)]
Correct some copy-and-paste mistakes in keybinding signal docs. Pointed
* gtk/gtkentry.c:
* gtk/gtklabel.c:
* gtk/gtktextview.c: Correct some copy-and-paste mistakes in
keybinding signal docs. Pointed out by Pascal Terjan.
svn path=/trunk/; revision=22140
Matthias Clasen [Sun, 18 Jan 2009 20:22:10 +0000 (20:22 +0000)]
Add properties and getters for icon tooltips.
* gtk/gtk.symbols:
* gtk/gtkentry.[hc]: Add properties and getters for icon tooltips.
svn path=/trunk/; revision=22139
Matthias Clasen [Sun, 18 Jan 2009 19:09:26 +0000 (19:09 +0000)]
Fix the example
svn path=/trunk/; revision=22138
Matthias Clasen [Sun, 18 Jan 2009 19:00:18 +0000 (19:00 +0000)]
Solve the msgctxt problem a bit more elegantly, and add some hints about
* gtk/gtkstock.c: Solve the msgctxt problem a bit more
elegantly, and add some hints about this to the docs of
gtk_stock_set_translate_func. Proposed by Christian Persch
svn path=/trunk/; revision=22137
Matthias Clasen [Sun, 18 Jan 2009 18:41:57 +0000 (18:41 +0000)]
Make xgettext recognize and extract NC_()
* Makefile.in.in: Make xgettext recognize and extract NC_()
svn path=/trunk/; revision=22136
Matthias Clasen [Sun, 18 Jan 2009 18:40:06 +0000 (18:40 +0000)]
Reinstate separate translation contexts for navigation and media labels
* gtk/gtkstock.c: Reinstate separate translation contexts for
navigation and media labels (these were lost in the transition
to msgctxt. Pointed out by Gabor Kelemen.
svn path=/trunk/; revision=22135
Matthias Clasen [Sun, 18 Jan 2009 16:07:00 +0000 (16:07 +0000)]
Use the last chance to get the api right, and rename things for
* gtk/gtk.symbols:
* gtk/gtkentry.[hc]: Use the last chance to get the api right,
and rename things for consistency, requested by Murray Cumming.
In detail,
gtk_entry_get_stock -> gtk_entry_get_icon_stock
gtk_entry_get_pixbuf -> gtk_entry_get_icon_pixbuf
gtk_entry_get_gicon -> gtk_entry_get_icon_gicon
gtk_entry_get_storage_type -> gtk_entry_get_icon_storage_type
::prelight -> ::icon-prelight
::pixbuf-primary -> ::primary-icon-pixbuf
::stock-primary -> ::primary-icon-stock
::icon-name-primary -> ::primary-icon-name
::gicon-primary-> ::primary-icon-gicon
::storage-type-primary -> ::primary-icon-storage-type
::activatable->primary -> ::primary-icon-activatable
::sensitive-primary -> ::primary-icon-sensitive
(and similar for secondary properties)
svn path=/trunk/; revision=22134
Matthias Clasen [Sun, 18 Jan 2009 15:57:06 +0000 (15:57 +0000)]
Use "const gchar*" in new tooltip api. Pointed out by Torsten Schoenfeld.
* gtk/gtkstatusicon.h: Use "const gchar*" in new tooltip api.
Pointed out by Torsten Schoenfeld.
svn path=/trunk/; revision=22133
Matthias Clasen [Sun, 18 Jan 2009 15:50:29 +0000 (15:50 +0000)]
End the search if the window is closed.
* demos/gtk-demo/search_entry.c: End the search if the window
is closed.
* demos/gtk-demo/search_entry.c:
* demos/gtk-demo/entry_completion.c: Group the entry examples
under "Entry".
svn path=/trunk/; revision=22132
Åsmund Skjæveland [Sun, 18 Jan 2009 15:47:50 +0000 (15:47 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-18 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22131
Christian Dywan [Sun, 18 Jan 2009 15:16:14 +0000 (15:16 +0000)]
Remove a redundant include from gtktoolbar.c
2009-01-18 Christian Dywan <christian@twotoasts.de>
Remove a redundant include from gtktoolbar.c
* gtk/gtktoolbar.c: Remove second inclusion of gtktoolbar.h.
Patch by Enrico Tröger.
svn path=/trunk/; revision=22130
Åsmund Skjæveland [Sun, 18 Jan 2009 14:36:17 +0000 (14:36 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-18 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22129
Gabor Kelemen [Sat, 17 Jan 2009 07:08:41 +0000 (07:08 +0000)]
Translation updated.
2009-01-17 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
svn path=/trunk/; revision=22128
Cody Russell [Fri, 16 Jan 2009 16:30:18 +0000 (16:30 +0000)]
Bug 567944 – [Win32] Sorted treeview columns can be unreadable
2009-01-16 Cody Russell <bratsche@gnome.org>
Bug 567944 – [Win32] Sorted treeview columns can be unreadable
* modules/engines/ms-windows/msw_style.c: Draw selected treeview
cells according to treeview focus, but ignore whether it is in
a sorted column or not. Otherwise the intersection of a selected
row and a sorted column looks very strange if the treeview does
not have focus.
svn path=/trunk/; revision=22126
Daniel Elstner [Fri, 16 Jan 2009 15:02:06 +0000 (15:02 +0000)]
Remove the namespace prefix from functions defined locally only. Clean up
* modules/input/gtkimcontextmultipress.[ch]: Remove the namespace
prefix from functions defined locally only. Clean up the code and
change indentation to match the GTK+ coding style.
(_GtkImContextMultipress::key_sequences): Replace array of pointers
by GHashTable. Adapt the implementation accordingly.
(passthrough_enabled_for_window): Remove. The passthrough hack is
no longer necessary thanks to the recently introduced "im-module"
property of GtkEntry and GtkTextView.
(load_config): Rework to implement an improved configuration file
format. Just fetch all keys of the group instead of expecting the
keys to be named a certain way. This also allows interpreting the
config key itself as the GDK key name to bind the character sequence
to, thereby making it independent of the sequence itself.
* modules/input/im-multipress.conf: New example configuration using
the new syntax. The example sequences are now bound to the numeric
keypad and imitate the behavior of a standard mobile phone.
svn path=/trunk/; revision=22125
Gabor Kelemen [Thu, 15 Jan 2009 19:12:38 +0000 (19:12 +0000)]
Translation updated.
2009-01-15 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
svn path=/trunk/; revision=22124
Murray Cumming [Thu, 15 Jan 2009 16:53:27 +0000 (16:53 +0000)]
documentation description: Mention the various properties and the
2009-01-15 Murray Cumming <murrayc@murrayc.com>
* gtk/gtkimcontext.c: documentation description: Mention the various
properties and the environment variable, with links to their
documentation.
* gtk/gtksettings.c:
* gtk/gtktextview.c: Make the im-module property documentation more
expansive.
svn path=/trunk/; revision=22123
Åsmund Skjæveland [Thu, 15 Jan 2009 16:26:18 +0000 (16:26 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-15 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22122
Åsmund Skjæveland [Thu, 15 Jan 2009 11:42:41 +0000 (11:42 +0000)]
Updated Norwegian Nynorsk translation.
2009-01-15 Åsmund Skjæveland <aasmunds@ulrik.uio.no>
* nn.po: Updated Norwegian Nynorsk translation.
svn path=/trunk/; revision=22121
Diego Escalante Urrelo [Thu, 15 Jan 2009 09:51:07 +0000 (09:51 +0000)]
Don't assume actions and results have equal height
This causes negative size requisitions when results are more than one
line tall.
* gtk/gtkentrycompletion.c: change the formula used to calculate
the size of the completion popup.
svn path=/trunk/; revision=22120
Federico Mena Quintero [Wed, 14 Jan 2009 20:19:10 +0000 (20:19 +0000)]
Load/save the file chooser's size
* gtk/gtkfilechooserdefault.c (save_dialog_geometry): New function.
(settings_save): Save the dialog's geometry.
(gtk_file_chooser_default_get_default_size): Load the geometry
from the settings. If it was already saved, return that instead
of computing an ad-hoc size.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22119
Federico Mena Quintero [Wed, 14 Jan 2009 20:18:54 +0000 (20:18 +0000)]
Don't clamp the restored size of the file chooser dialog
* gtk/gtkfilechooserdialog.c
(file_chooser_widget_default_size_changed): Simply resize the
dialog to the default size without any fancy clamping. Also,
leave in place ifdef-ed out code to restore the file chooser's
position in addition to its size. The code to restore the
position doesn't quite work yet, but we'll leave it in as a
reference.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22118
Federico Mena Quintero [Wed, 14 Jan 2009 20:18:40 +0000 (20:18 +0000)]
Avoid visibly resizing the file chooser at startup
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_map):
Don't change the default size in ::map() so we don't flicker...
(gtk_file_chooser_default_realize): ... so do it in ::realize()
instead, when the window is not yet visible. This avoids a
dialog-that-resizes when you first pop up the file chooser.
(emit_default_size_changed): Just emit the signal; don't check for
the widget's state so we can be emitted during the initial
::realize() when we are not mapped yet.
(update_preview_widget_visibility): Only emit default_size_changed
if the widget is not mapped, to avoid resizing the dialog while it
is visible.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22117
Federico Mena Quintero [Wed, 14 Jan 2009 20:18:23 +0000 (20:18 +0000)]
Add GtkFileChooserSettings for the dialog's geometry
2009-01-14 Federico Mena Quintero <federico@novell.com>
Remember the file chooser's geometry across invocations.
* gtk/gtkfilechoosersettings.h (struct _GtkFileChooserSettings):
New fields geometry_x, geometry_y, geometry_width, geometry_height.
(_gtk_file_chooser_settings_get_geometry): New prototype.
(_gtk_file_chooser_settings_set_geometry): New prototype.
* gtk/gtkfilechoosersettings.c (GEOMETRY_X_KEY, GEOMETRY_Y_KEY,
GEOMETRY_WIDTH_KEY, GEOMETRY_HEIGTH_KEY): New key names.
(ensure_settings_read): Read the geometry keys.
(_gtk_file_chooser_settings_save): Save the geometry keys.
(_gtk_file_chooser_settings_init): Initialize the geometry keys to
"don't have this value".
(_gtk_file_chooser_settings_get_geometry): New public function.
(_gtk_file_chooser_settings_set_geometry): New public function.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=22116
Jorge Gonzalez Gonzalez [Wed, 14 Jan 2009 19:20:56 +0000 (19:20 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22115
Gabor Keleman [Wed, 14 Jan 2009 14:05:06 +0000 (14:05 +0000)]
Small update
svn path=/trunk/; revision=22114
Matthias Clasen [Tue, 13 Jan 2009 19:15:42 +0000 (19:15 +0000)]
Bug 450716 – New API to change global IM
Requested by Daniel Elstner.
* gtk/gtk.symbols:
* gtk/gtkimmulticontext.[hc] (gtk_im_multicontext_set_context_id):
New function to set the context id on a GtkIMMulticontext.
* gtk/gtkentry.c:
* gtk/gtktextview.c: Add a ::im-module property that can be
set to override the global setting for the im module to be used.
svn path=/trunk/; revision=22113
Christian Dywan [Tue, 13 Jan 2009 15:24:03 +0000 (15:24 +0000)]
Bug 566532 – GtkScaleButton implementation of GtkOrientable
2009-01-13 Christian Dywan <christian@imendio.com>
Bug 566532 – GtkScaleButton implementation of GtkOrientable
* gtk/gtk.symbols:
* gtk/gtkscalebutton.c (gtk_scale_button_class_init),
(gtk_scale_button_set_property):
* gtk/gtkscalebutton.h: Deprecate gtk_scale_button_get_orientation
in favour of implementing GtkOrientable. Patch by Bruce Cowan.
svn path=/trunk/; revision=22112
Gabor Kelemen [Tue, 13 Jan 2009 14:59:58 +0000 (14:59 +0000)]
Translation updated.
2009-01-13 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
svn path=/trunk/; revision=22111
Tor Lillqvist [Tue, 13 Jan 2009 14:04:27 +0000 (14:04 +0000)]
Bug 164002 - query scripts don't work uninstalled on windows
2009-01-13 Tor Lillqvist <tml@iki.fi>
Bug 164002 - query scripts don't work uninstalled on windows
* gtk/gtkmain.c (_gtk_get_libdir): If the gtk DLL is in a ".libs"
folder, assume we are running uninstalled, and use the
configure-time GTK_LIBDIR.
svn path=/trunk/; revision=22110
Luca Ferretti [Tue, 13 Jan 2009 13:25:42 +0000 (13:25 +0000)]
added missing gtk/gtkorientable.c
2009-01-13 Luca Ferretti <elle.uca@libero.it>
* POTFILES.in: added missing gtk/gtkorientable.c
svn path=/trunk/; revision=22109
Luca Ferretti [Tue, 13 Jan 2009 13:23:55 +0000 (13:23 +0000)]
adde missing gtk/gtkorientable.c
2009-01-13 Luca Ferretti <elle.uca@libero.it>
* POTFILES.in: adde missing gtk/gtkorientable.c
svn path=/trunk/; revision=22108
Luca Ferretti [Tue, 13 Jan 2009 13:18:23 +0000 (13:18 +0000)]
Changed two conflicting accelerators.
2009-01-13 Luca Ferretti <elle.uca@libero.it>
* it.po: Changed two conflicting accelerators.
svn path=/trunk/; revision=22107
Tor Lillqvist [Tue, 13 Jan 2009 11:17:25 +0000 (11:17 +0000)]
Bug 164002 - query scripts don't work uninstalled on windows
2009-01-12 Tor Lillqvist <tml@iki.fi>
Bug 164002 - query scripts don't work uninstalled on windows
* queryloaders.c (main): Use the configure-time PIXBUF_LIBDIR if
the exe is located in a .libs folder, i.e. run in the build
directory through a libtool wrapper script or wrapper executable,
or in the source folder itself. Otherwise continue to infer the
runtime prefix from the exe's location.
2009-01-12 Tor Lillqvist <tml@iki.fi>
* queryloaders.c (main): Remove the Win9x code path. It had been
left by mistake. Win9x code is gone from the rest of GTK+ since
2.12.
svn path=/trunk/; revision=22106
Christian Dywan [Tue, 13 Jan 2009 09:32:17 +0000 (09:32 +0000)]
Bug 567569 – Typo in GtkFileChooser example in GTK+ documentation
2009-01-13 Christian Dywan <christian@imendio.com>
Bug 567569 – Typo in GtkFileChooser example in GTK+ documentation
* gtk/tmpl/gtkfilechooser.sgml: s/gobject_unref/g_object_unref.
Patch by Priyank Gosalia.
svn path=/trunk/; revision=22105
Matthias Clasen [Tue, 13 Jan 2009 05:32:13 +0000 (05:32 +0000)]
no news
svn path=/trunk/; revision=22104
Matthias Clasen [Tue, 13 Jan 2009 03:04:52 +0000 (03:04 +0000)]
Don't cause lots of X traffic when the icon name doesn't actually change.
* gtk/gtkwindow.c (gtk_window_set_icon_name): Don't cause lots
of X traffic when the icon name doesn't actually change. Some
apps like to reset their window icon frequently, without actually
changing the icon name...
svn path=/trunk/; revision=22103
Jorge Gonzalez Gonzalez [Mon, 12 Jan 2009 22:43:46 +0000 (22:43 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22102
Paolo Borelli [Mon, 12 Jan 2009 17:21:24 +0000 (17:21 +0000)]
use the normalized name in last patch's signal
svn path=/trunk/; revision=22101
Paolo Borelli [Mon, 12 Jan 2009 17:07:35 +0000 (17:07 +0000)]
Bug 492794 – Pasting external text at end of view yields wrong scrolling
2009-01-12 Paolo Borelli <pborelli@katamail.com>
Bug 492794 – Pasting external text at end of view yields wrong
scrolling to mark
* gtk/gtktextbuffer.[ch]:
* gtk/gtktextview.c:
Add a "paste-done" signal and use it to propelry scroll the
view at the end of the pasted text in the case of an async
paste. Patch by Ignacio Casal Quintero based on a patch by
Yevgen Muntyan.
svn path=/trunk/; revision=22100
Kjartan Maraas [Mon, 12 Jan 2009 12:47:50 +0000 (12:47 +0000)]
Updated Norwegian bokmål translation.
2009-01-12 Kjartan Maraas <kmaraas@gnome.org>
* nb.po: Updated Norwegian bokmål translation.
svn path=/trunk/; revision=22096
Tor Lillqvist [Mon, 12 Jan 2009 12:05:13 +0000 (12:05 +0000)]
A GOptionArgFunc should return gboolean and take also a GError pointer
2009-01-12 Tor Lillqvist <tml@iki.fi>
* gdk/gdk.c (gdk_arg_debug_cb) (gdk_arg_no_debug_cb): A
GOptionArgFunc should return gboolean and take also a GError
pointer parameter, so make these two functions do that. Return
FALSE (and set the GError) if the parsing of the debug string
failed completely. Note that g_parse_debug_string() doesn't really
have any way to return parsing status, and accepts partially
incorrect strings, though.
svn path=/trunk/; revision=22095
Theppitak Karoonboonyanan [Mon, 12 Jan 2009 11:13:54 +0000 (11:13 +0000)]
Updated Thai translation.
2009-01-12 Theppitak Karoonboonyanan <thep@linux.thai.net>
* th.po: Updated Thai translation.
svn path=/trunk/; revision=22093
Theppitak Karoonboonyanan [Mon, 12 Jan 2009 10:32:46 +0000 (10:32 +0000)]
Updated Thai translation.
2009-01-12 Theppitak Karoonboonyanan <thep@linux.thai.net>
* th.po: Updated Thai translation.
svn path=/trunk/; revision=22092
Claudio Saavedra [Mon, 12 Jan 2009 09:57:01 +0000 (09:57 +0000)]
Bug 567468 – no check for trailing != NULL in
2009-01-12 Claudio Saavedra <csaavedra@igalia.com>
Bug 567468 – no check for trailing != NULL in
gtk_text_layout_get_iter_at_position()
* gtk/gtktextlayout.c: (gtk_text_layout_get_iter_at_position):
Check for trailing to be non-NULL.
* gtk/gtktextview.c: (gtk_text_view_get_iter_at_position): document
that trailing may be NULL.
svn path=/trunk/; revision=22090
Claude Paroz [Mon, 12 Jan 2009 08:31:59 +0000 (08:31 +0000)]
Commit an empty crh.po to make gtk+ build again.
2009-01-12 Claude Paroz <claude@2xlibre.net>
* crh.po: Commit an empty crh.po to make gtk+ build again.
svn path=/trunk/; revision=22089
Claude Paroz [Sun, 11 Jan 2009 19:22:59 +0000 (19:22 +0000)]
Added crh Updated Crimean Tatar translation on behalf of Reşat SABIQ.
2009-01-11 Claude Paroz <claude@2xlibre.net>
* LINGUAS: Added crh
* crh.po: Updated Crimean Tatar translation on behalf of Reşat SABIQ.
svn path=/trunk/; revision=22088
Tor Lillqvist [Sun, 11 Jan 2009 13:23:46 +0000 (13:23 +0000)]
Bug 523554 - Copy from GIMP to Word broken
2009-01-11 Tor Lillqvist <tml@iki.fi>
Bug 523554 - Copy from GIMP to Word broken
* gdk/win32/gdkselection-win32.c
(_gdk_win32_selection_convert_to_dib): The DIB stored in the
Windows Clipboard was for some unknown reason truncated by one
byte. Don't do that.
svn path=/trunk/; revision=22086
Matthias Clasen [Sun, 11 Jan 2009 05:44:18 +0000 (05:44 +0000)]
Properly create a menu proxy from a GIcon. Patch by Christian Persch
* gtk/gtktoolbutton.c: Properly create a menu proxy from a GIcon.
Patch by Christian Persch
* tests/testtoolbar.c: Add an example with a GIcon
svn path=/trunk/; revision=22084
Funda Wang [Sat, 10 Jan 2009 05:27:02 +0000 (05:27 +0000)]
Updated zh_CN translation.
svn path=/trunk/; revision=22083
Christian Dywan [Fri, 9 Jan 2009 13:47:02 +0000 (13:47 +0000)]
Fail in gdk_window_new if _gdk_window_new failed
2009-01-09 Christian Dywan <christian@imendio.com>
Fail in gdk_window_new if _gdk_window_new failed
* gdk/gdkwindow.c (gdk_window_new): Add g_return_val_if_fail
in case _gdk_window_new is NULL. Approved by Tim Janik
svn path=/trunk/; revision=22082
Gintautas Miliauskas [Fri, 9 Jan 2009 09:48:13 +0000 (09:48 +0000)]
Updated Lithuanian translation.
2009-01-09 Gintautas Miliauskas <gintas@akl.lt>
* lt.po: Updated Lithuanian translation.
svn path=/trunk/; revision=22081
Funda Wang [Fri, 9 Jan 2009 02:49:52 +0000 (02:49 +0000)]
merge to msgctxt
svn path=/trunk/; revision=22080
Matthias Clasen [Thu, 8 Jan 2009 05:37:39 +0000 (05:37 +0000)]
Bug 566733 – Add GIcon to GtkAction, GtkToolButton
* gtk/gtkaction.c: Add a ::gicon property to GtkAction and set the
icon from it if specified. The stock icon is preferred if a stock id
is given. Based on a patch by A. Walton
svn path=/trunk/; revision=22079
Leonardo Ferreira Fontenelle [Wed, 7 Jan 2009 22:56:57 +0000 (22:56 +0000)]
Updated Brazilian Portuguese translation.
2009-01-07 Leonardo Ferreira Fontenelle <leonardof@gnome.org>
* pt_BR.po: Updated Brazilian Portuguese translation.
svn path=/trunk/; revision=22075
Matthias Clasen [Wed, 7 Jan 2009 15:02:33 +0000 (15:02 +0000)]
Bug 566862 – pixbuf_new_from_file does not autodetect format
2009-01-07 Matthias Clasen <mclasen@redhat.com>
Bug 566862 – pixbuf_new_from_file does not autodetect format
* gdk-pixbuf-io.c (_gdk_pixbuf_get_module): Go back to sniffing
without looking at the filename, to avoid breaking expected
functionality.
svn path=/trunk/; revision=22073
Brad Taylor [Wed, 7 Jan 2009 14:46:10 +0000 (14:46 +0000)]
Bug #565110 – Add an env variable to disable Gail.
2009-01-07 Brad Taylor <brad@getcoded.net>
* gail.c:
Bug #565110 – Add an env variable to disable Gail.
svn path=/trunk/; revision=22072
Jorge Gonzalez Gonzalez [Tue, 6 Jan 2009 10:33:32 +0000 (10:33 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22071
Matthias Clasen [Mon, 5 Jan 2009 18:14:58 +0000 (18:14 +0000)]
Use a better caps lock warning icon
svn path=/trunk/; revision=22070
Jorge Gonzalez Gonzalez [Mon, 5 Jan 2009 16:02:21 +0000 (16:02 +0000)]
Updated Spanish translation
svn path=/trunk/; revision=22069
Tor Lillqvist [Mon, 5 Jan 2009 15:31:14 +0000 (15:31 +0000)]
Bug 566628 - gdk_display_close always asserts on win32
2009-01-05 Tor Lillqvist <tml@novell.com>
Bug 566628 - gdk_display_close always asserts on win32
* gdk/win32/gdkdisplay-win32.c
(_gdk_windowing_set_default_display): Allow also a NULL parameter
in the g_assert(). Still don't actually do anything in this
function, though.
svn path=/trunk/; revision=22068
Kjartan Maraas [Mon, 5 Jan 2009 14:28:12 +0000 (14:28 +0000)]
Updated Norwegian bokmål translation.
2009-01-05 Kjartan Maraas <kmaraas@gnome.org>
* nb.po: Updated Norwegian bokmål translation.
svn path=/trunk/; revision=22065
Lu Gan [Mon, 5 Jan 2009 12:38:18 +0000 (12:38 +0000)]
Update zh_CN.po
svn path=/trunk/; revision=22064
Matthias Clasen [Mon, 5 Jan 2009 04:19:48 +0000 (04:19 +0000)]
Add long description
svn path=/trunk/; revision=22063
Matthias Clasen [Mon, 5 Jan 2009 04:07:00 +0000 (04:07 +0000)]
Fix a typo in the docs
svn path=/trunk/; revision=22062